package com.liumo.domain;

import com.liumo.domain.intface.BinaryOperation;

import java.util.Random;

public class AdditionOperation extends BinaryOperation {
    public AdditionOperation() {
        this.aChar = " + ";
    }

    @Override
    protected void count() {
        result = this.one + this.two;
        if (result >= 100) {
            this.two -= 10;
            count(); // 递归调整结果范围
        }
    }
}
